package com.atguigu.service;

import com.atguigu.bean.Student;
import com.atguigu.dao.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentService {
    @Autowired
    StudentMapper studentMapper;

    public List<Student> getAll(){
        List<Student> students = studentMapper.selectByExampleWithDept(null);
        return students;
    }
}
